home *** CD-ROM | disk | FTP | other *** search
/ MPEG Toolkit / MPEG Toolkit.iso / win / avi2mpeg / avirip.txt < prev    next >
Encoding:
Text File  |  1997-01-01  |  4.4 KB  |  86 lines

  1. AviRip - By Mike Negus
  2.  
  3. This is my second installment in the quest to create an AVI to MPG converter.
  4. The first was the rawrip program that converts the raw file made by DMPEG to a
  5. series of DIB (BMP) files which can be read by Microsoft's Video for Windows,
  6. the full version.  In the complete VFW you can edit, compress and save AVI
  7. files.
  8.  
  9. The AVIRIP program only works on 24-bit, UNCOMPRESSED, NON-STREAMING AUDIO,
  10. AVI files.  What you probably will need to do is to uncompress and promote
  11. to 24-bit, the AVI files you already have.  To do this you MUST HAVE
  12. MICROSOFT'S VIDEO FOR WINDOWS full blown editing version.
  13.  
  14. Note! A 1000+ Frame AVI and resulting TGA files will take up about 100+MB.
  15.       Yes, that's 100+MB.  If you have a problem with space then buy a bigger
  16.       hard drive.  Their cheap.  Here at Egghead you can get a 540MB HD for $270.  
  17.  
  18. STEPS:
  19.  
  20. 1.  Load the AVI with the VidEdit program that comes with VFW.
  21. 2.  Click on the VIDEO pull down menu and click on Video Format.  Select 24 bit.
  22. 3.  Click on the FILE pull down menu and click on the Save-As option.
  23.     a.  Click on Compression Options.
  24.     b.  Select HARD DISK as the target device.  (no interleaving)
  25.     c.  Select FULL FRAMES as the Video Compression Method.
  26.     d.  Use a different name for your new file.  Do not write over your
  27.         old one.
  28.     e.  Click on OK to save the file.
  29. 4.  You can copy the sound from the AVI and then paste it into the WaveEdit
  30.     program which comes with VFW.  You can save the audio as a wave file
  31.     to be played along with the MPEG you are about to make.
  32. 5.  Use the AVIRIP program to rip the AVI file into TARGA, TGA, files.  These
  33.     files are read by CMPEG which will create the MPEG.
  34.     Use command: avirip <yourfile>.avi t
  35.     Don't forget the 't' at the end, it will create targa files.  Leaving
  36.     it off will make my program create a DIB sequence.  Each DIB can be read
  37.     by any bitmap editor to view.
  38. 6.  Go out and watch a movie, do some lawn work while my program creates the TGA
  39.     files.  Do not create the TGA files on the root directory since DOS only
  40.     allows 511 file entries into the FAT there.  Put it into a subdirectory
  41.     and you can go 1000+ TGA files.
  42. 7.  Use the batchfile that my program makes.  It is named <yourfile>.bat.  CMPEG
  43.     and the i.ctl file must be in the current directory that the AVI is in.
  44.     The batchfile tells CMPEG to create a XING compatible MPEG.
  45. 8.  Go out and play.
  46. 9.  When CMPEG is finished.  You can play the <yourfile>.mpg with any MPEG player.
  47.     I suggest using the VMPEG player.  My batch file will have CMPEG create a XING
  48.     compatible file but the XING player seems to decode the MPEG into fuzzy images.
  49.     VMPEG will play them very fast with little loss of clarity.  If you have saved
  50.     the audio as a WAV file under the name of <yourfile>.wav in the same directory
  51.     as the MPG then the XING player will play it along with the MPG.  VMPEG will not.
  52. 10. Delete the 24-bit AVI and all the TGA files.
  53.     
  54. Please read the CMPEG DOC so that you can understand how to edit the batchfile
  55. that my program makes to create better MPG files.  You can use IPB frame encoding
  56. with the IPB.CTL file instead of the I.CTL file.  To make a sharper MPEG, change the
  57. number in the first line of the i.ctl file from 8 to some number less (4-5 works well).
  58.  
  59. My program also creates a sequence listing file for CMPEG to use.  You can edit that
  60. file (named <yourfile>.txt) to create an MPEG from only those files you want.
  61.  
  62. My program will also allow you to start ripping an avi at a specific frame or use
  63. a lightness factor.  To use avirip with a 24-bit avi file called test.avi starting
  64. at frame 10 with lightness factor 25 and creating TGA files:
  65.  
  66. avirip test.avi t s10 l25
  67.  
  68. This will also create a test.bat file that can be run to envoke CMPEG.
  69.  
  70. Using with no options:
  71.  
  72. avirip test.avi
  73.  
  74. Creates DIB files starting at frame 0 and using no lightness factor.
  75. Both commands create a test.txt file.  
  76.  
  77. I had a lot of fun making this program and figuring out the DIB/BMP and TGA 
  78. formats so this is FREE to whoever wants it.  If you have a program that 
  79. creates MPEG's or does what my program does but better AND IS SHAREWARE
  80. then please post it on the INTERNET for others like myself to get and use.
  81.  
  82. -Mike Negus
  83. E-MAIL: men0348@isc.rit.edu
  84.  
  85. PS. The second version of avirip may allow 256 color (8-bit) and maybe
  86. 16-bit (64k color) AVI files.  This should require much less space.